<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>精灵图sprites</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .box1 {
            width: 403px;
            height: 600px;
            background: url(images/sprites/index.png);
        }
        .box2 {
            width: 58px;
            height: 58px;
            background: url(images/sprites/index.png) no-repeat -182px 0px;
        }
        .box3 {
            width: 24px;
            height: 24px;
            background: url(images/sprites/index.png) no-repeat -157px -107px;
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
</body>
</html>